﻿@model IPagedList<Propro.Models.Log>

@{
    ViewBag.Title = "Index";
}

<h2>Logs</h2>

<table id="logTabel">

    <tr>
        <th>Info</th>
        <th>Datum</th>
        <th>User</th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.info)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Date)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.User.UserName)
            </td>

        </tr>
    }

</table>

<div class="pagedList" data-otf-target="#restaurantList">
    @Html.PagedListPager(Model, page => Url.Action("Index", new { page }),PagedListRenderOptions.MinimalWithItemCountText)
</div>
